package com.xjggb.cloud.service;

import com.xjggb.cloud.entity.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "CLOUD-PROVIDER-PAYMENT8001")
public interface PaymentFeignService {

    @GetMapping("/payment/get/{id}")
    CommonResult agePaymentById(@PathVariable("id") Long id);

    //模拟超时
    @GetMapping("/feign/timeout")
     int timeout();

}
